package com.wmh.baseservice.merchant.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.wmh.baseservice.common.utils.page.pojo.PageInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;

/**
 * @author wmh generator
 * @since 2022-01-07
 */
@ApiModel(value = "MerchantApply对象", description = "商家提现申请表")
public class MerchantApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "状态:	0审核中	1通过	-1拒绝")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    private Date createTime;

    private Date updateTime;

    private Long merchantId;

    @ApiModelProperty(value = "提现金额")
    private BigDecimal money;

    @ApiModelProperty(value = "审核人id")
    private Long auditId;

    @ApiModelProperty(value = "拒绝原因")
    private String refuseReason;

    @ApiModelProperty(value = "审核时间")
    private Date auditTime;

    @ApiModelProperty(value = "银行卡id")
    private Long bankCardId;

    @TableField(exist = false)
    private String nick;
    @TableField(exist = false)
    private String avatar;


    @TableField(exist = false)
    private String cardNum;
    @TableField(exist = false)
    private String cardName;



    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Long getId() {
        return id;
    }

    public MerchantApply setId(Long id) {
        this.id = id;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public MerchantApply setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public MerchantApply setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public Integer getVersion() {
        return version;
    }

    public MerchantApply setVersion(Integer version) {
        this.version = version;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public MerchantApply setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public MerchantApply setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public MerchantApply setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
        return this;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public MerchantApply setMoney(BigDecimal money) {
        this.money = money;
        return this;
    }

    public Long getAuditId() {
        return auditId;
    }

    public MerchantApply setAuditId(Long auditId) {
        this.auditId = auditId;
        return this;
    }

    public String getRefuseReason() {
        return refuseReason;
    }

    public MerchantApply setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason;
        return this;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public MerchantApply setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
        return this;
    }

    public Long getBankCardId() {
        return bankCardId;
    }

    public MerchantApply setBankCardId(Long bankCardId) {
        this.bankCardId = bankCardId;
        return this;
    }

    public static final String ID = "id";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";

    public static final String VERSION = "version";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String MERCHANT_ID = "merchant_id";

    public static final String MONEY = "money";

    public static final String AUDIT_ID = "audit_id";

    public static final String REFUSE_REASON = "refuse_reason";

    public static final String AUDIT_TIME = "audit_time";

    public static final String BANK_CARD_ID = "bank_card_id";

    @Override
    public String toString() {
        return "MerchantApply{" +
                "id=" + id +
                ", status=" + status +
                ", remark=" + remark +
                ", version=" + version +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", merchantId=" + merchantId +
                ", money=" + money +
                ", auditId=" + auditId +
                ", refuseReason=" + refuseReason +
                ", auditTime=" + auditTime +
                ", bankCardId=" + bankCardId +
                "}";
    }

    public final static String[] getFields(String... noField) {
        List<String> list = new ArrayList<>(Arrays.asList(
                MerchantApply.ID
                , MerchantApply.STATUS
                , MerchantApply.REMARK
                , MerchantApply.VERSION
                , MerchantApply.CREATE_TIME
                , MerchantApply.UPDATE_TIME
                , MerchantApply.MERCHANT_ID
                , MerchantApply.MONEY
                , MerchantApply.AUDIT_ID
                , MerchantApply.REFUSE_REASON
                , MerchantApply.AUDIT_TIME
                , MerchantApply.BANK_CARD_ID
        ));
        list.removeAll(new ArrayList<>(Arrays.asList(noField)));
        return list.toArray(new String[0]);
    }
}